package com.wanho.java157.CustomerManagement.service.impl;

import com.wanho.java157.CustomerManagement.mapper.LinkMapper;
import com.wanho.java157.CustomerManagement.po.Link;
import com.wanho.java157.CustomerManagement.service.LinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LingServiceImpl implements LinkService {
    @Autowired
    private LinkMapper linkMapper ;
    @Override
    public List<Link> selectAll() {
        return linkMapper.selectAll();
    }

    @Override
    public boolean addLink(Link link) {
        return linkMapper.addLink(link);
    }

    @Override
    public boolean update(Link link) {
        return linkMapper.update(link);
    }
}
